export function sleep(ms: number) {
  return new Promise<void>((resolve) => {
    const t = setTimeout(() => {
      resolve();
      clearTimeout(t);
    }, ms);
  });
}
